#!/bin/sh
Date=`date +%Y%m%d`
Date1=`date +%Y`
echo $Date1
export LANG=en_US.UTF-8
del_url=/data/ftpGet/ftpLog
del_mainurl=/data/ftpGet/mainLog/
echo $del_url
find $del_url -mtime +7 -type f | xargs rm -f
echo $del_mainurl
find $del_mainurl  -name "$Date1*" -mtime +7 | xargs rm -rf
echo "清理日志成功"

